package com.hg.wap.action;

import java.util.Map;

import com.hg.cache.FIFOCache;
import com.hg.util.action.WapMbaseAction;

public class CacheAction extends WapMbaseAction
{
	/**
	 * 清除缓存,目前只清除m_config
	 * @param root
	 */
	public void clear(Map root){
		FIFOCache<String, Object> cache = (FIFOCache<String, Object>) root.get("cache");
		cache.remove("m_config");	//清除系统缓存
		
		map.put("err_code", -1);
		map.put("err_msg", "清除缓存成功");
		json_return(root, map);
	}
}
